package com.example.springboot_for_test.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/hello")
    public String hello(){
        return "Hello World!";
    }
    @RequestMapping(value="/hello1", method=RequestMethod.GET)
    public String requestMethodName() {
        return new String("Hollo Spring!");
    }
    @RequestMapping(value="/hello2", method=RequestMethod.GET)
    public String requestGetTest() {
        return new String("Hollo Spring2!");
    }
    
}

